package p8;

/**
 * @author krystal
 * @date 2022/11/12 12:05
 */
abstract class Shape{
    public abstract void draw();
}

class Rect extends Shape{

    @Override
    public void draw() {
        System.out.println("■");
    }
}

public class Demo1 {
    public static void main(String[] args) {
        Shape shape=new Rect();
    }
}
